<html>
<head>
<title>Vocab app engine</title>
</head>
<body>

{{ user_text }} <a href="{{ url }}">{{ url_linktext }}</a>


<h1>Vocab</h1>
<form action="/html/add" method="post">
	name: <input type="text" name="name" /><br />
	<textarea name="diagram" rows="20" cols="80"></textarea><br />
	<input type="submit" value="Save" />
<br />
</form>

<br />


{% if authenticated %}
<hr>
[<a href="{{url_archive}}">{{ url_archivetext }}</a>]
<h1>Personal</h1>
{% for vocab in vocabsPersonal %}
<li>
	<a href="/html/view/{{ vocab.key }}">{{ vocab.name }}</a>
	
	{% if vocab.author %}
		[{{ vocab.date }}] <b>{{ vocab.author.nickname }}</b>
	{% else %}
		[{{ vocab.date }}] <b>Anonymous</b>
	{% endif %}
</li>	
{% endfor %}
<hr>
{% endif %}

<h1>Public</h1>
{% for vocab in vocabs %}
<li>
	<a href="view/{{ vocab.key }}">{{ vocab.name }}</a>
	
	{% if vocab.author %}
		[{{ vocab.date }}] <b>{{ vocab.author.nickname }}</b>
	{% else %}
		[{{ vocab.date }}] <b>Anonymous</b>
	{% endif %}
</li>	
{% endfor %}

</body>
</html>
